Optimal. Leaf size=201 \[ \frac {\tan (e+f x) (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} \left (c (d \tan (e+f x))^p\right )^n F_1\left (n p+1;-m,1;n p+2;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right )}{2 f (n p+1)}+\frac {\tan (e+f x) (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} \left (c (d \tan (e+f x))^p\right )^n F_1\left (n p+1;-m,1;n p+2;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right )}{2 f (n p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 201, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3578, 3575, 912, 135, 133} \[ \frac {\tan (e+f x) (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} \left (c (d \tan (e+f x))^p\right )^n F_1\left (n p+1;-m,1;n p+2;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right )}{2 f (n p+1)}+\frac {\tan (e+f x) (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} \left (c (d \tan (e+f x))^p\right )^n F_1\left (n p+1;-m,1;n p+2;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right )}{2 f (n p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 133
Rule 135
Rule 912
Rule 3575
Rule 3578
Rubi steps
\begin {align*} \int \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \, dx &=\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \int (d \tan (e+f x))^{n p} (a+b \tan (e+f x))^m \, dx\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname {Subst}\left (\int \frac {(d x)^{n p} (a+b x)^m}{1+x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname {Subst}\left (\int \left (\frac {i (d x)^{n p} (a+b x)^m}{2 (i-x)}+\frac {i (d x)^{n p} (a+b x)^m}{2 (i+x)}\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname {Subst}\left (\int \frac {(d x)^{n p} (a+b x)^m}{i-x} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname {Subst}\left (\int \frac {(d x)^{n p} (a+b x)^m}{i+x} \, dx,x,\tan (e+f x)\right )}{2 f}\\ &=\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}\right ) \operatorname {Subst}\left (\int \frac {(d x)^{n p} \left (1+\frac {b x}{a}\right )^m}{i-x} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}\right ) \operatorname {Subst}\left (\int \frac {(d x)^{n p} \left (1+\frac {b x}{a}\right )^m}{i+x} \, dx,x,\tan (e+f x)\right )}{2 f}\\ &=\frac {F_1\left (1+n p;-m,1;2+n p;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right ) \tan (e+f x) \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}}{2 f (1+n p)}+\frac {F_1\left (1+n p;-m,1;2+n p;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right ) \tan (e+f x) \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}}{2 f (1+n p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.66, size = 0, normalized size = 0.00 \[ \int \left (c (d \tan (e+f x))^p\right )^n (a+b \tan (e+f x))^m \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.70, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\left (\left (d \tan \left (f x + e\right )\right )^{p} c\right )^{n} {\left (b \tan \left (f x + e\right ) + a\right )}^{m}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (\left (d \tan \left (f x + e\right )\right )^{p} c\right )^{n} {\left (b \tan \left (f x + e\right ) + a\right )}^{m}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.79, size = 0, normalized size = 0.00 \[ \int \left (c \left (d \tan \left (f x +e \right )\right )^{p}\right )^{n} \left (a +b \tan \left (f x +e \right )\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (\left (d \tan \left (f x + e\right )\right )^{p} c\right )^{n} {\left (b \tan \left (f x + e\right ) + a\right )}^{m}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\left (c\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^p\right )}^n\,{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^m \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c \left (d \tan {\left (e + f x \right )}\right )^{p}\right )^{n} \left (a + b \tan {\left (e + f x \right )}\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________